[gd_scene load_steps=4 format=2]

[ext_resource path="res://Weapons/Scripts/Weapon.gd" type="Script" id=1]
[ext_resource path="res://Ammo/Bullet.tscn" type="PackedScene" id=2]

[sub_resource type="Gradient" id=1]
colors = PoolColorArray( 1, 0.729412, 0.729412, 1, 0.654902, 0.792157, 1, 1 )

[node name="Weapon" type="Node2D"]
script = ExtResource( 1 )
BulletScene = ExtResource( 2 )

[node name="RotationPoint" type="Position2D" parent="."]
position = Vector2( 4, 4 )

[node name="Sprite" type="Sprite" parent="RotationPoint"]

[node name="PivotTimer" type="Timer" parent="RotationPoint"]

[node name="MuzzlePosition" type="Position2D" parent="."]

[node name="LaserSight" type="Line2D" parent="."]
visible = false
width = 1.0
gradient = SubResource( 1 )

[node name="Label" type="Label" parent="."]
margin_top = -14.0
margin_right = 30.0

[node name="ShootTimer" type="Timer" parent="."]
one_shot = true

[connection signal="target_on_sight" from="." to="." method="_on_Weapon_target_on_sight"]
[connection signal="timeout" from="RotationPoint/PivotTimer" to="." method="_on_PivotTimer_timeout"]
[connection signal="timeout" from="ShootTimer" to="." method="_on_ShootTimer_timeout"]
